﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPage.Master" CodeBehind="details.aspx.vb" Inherits="VerisEdiWebsite.details" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="main">

        <asp:FormView ID="DetailsView" runat="server" DataSourceID="DetailsDataSource" OnDataBinding ="DetailsView_DataBinding" OnDataBound="DetailsView_DataBound" EnableModelValidation="True" Height="183px" Width="417px">
            <ItemTemplate>
                <asp:Image runat="server" ID="img_Product" ImageUrl='<%# Eval("ImagePath")%>' CssClass="cbl" />

                <asp:Label runat="server" ID="lbl_ProductName" Text='<%# Eval("HardwareName")%>' CssClass="cbl"></asp:Label>
                <div class="cbl txtC">
                    <asp:Literal ID="literal_ShortDescription" runat="server" Text='<%# Eval("ShortDescription")%>'></asp:Literal>
                </div>

                <div class="new cbl center">

                    <asp:Literal ID="literal_LongDescription" runat="server" Text='<%# Eval("LongDescription")%>'></asp:Literal>

                </div>
            </ItemTemplate>

        </asp:FormView>

        <%-- <asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px" DataSourceID="DetailsDataSource"
            AutoGenerateRows="False" GridLines="None" HorizontalAlign="Left" EnableModelValidation="True">
            <Fields>
                <asp:ImageField DataImageUrlField="ImagePath" HeaderText="Product Image" ShowHeader="false" SortExpression="ImagePath"></asp:ImageField>
                <asp:BoundField DataField="HardwareName" HeaderText="HardwareName" ShowHeader="false" SortExpression="HardwareName" ItemStyle-CssClass="cbl" />
                <asp:BoundField DataField="ModelNumber" HeaderText="ModelNumber" ShowHeader="false" SortExpression="ModelNumber" />
                <asp:BoundField DataField="ShortDescription" HeaderText="ShortDescription" ShowHeader="false" SortExpression="ShortDescription" />
                <asp:BoundField DataField="ID" HeaderText="ID"  ShowHeader="false" InsertVisible="False" SortExpression="ID" />
                <asp:BoundField DataField="CategoryName" HeaderText="CategoryName" ShowHeader="false" SortExpression="CategoryName" />
                <asp:BoundField DataField="ImagePath" HeaderText="ImagePath"  ShowHeader="false" SortExpression="ImagePath" />
                <asp:BoundField DataField="LongDescription" HeaderText="LongDescription" ShowHeader="false" SortExpression="LongDescription" />
             </Fields>
        </asp:DetailsView>--%>

        <asp:SqlDataSource ID="DetailsDataSource" runat="server" ConnectionString="Provider=Microsoft.ACE.OLEDB.12.0;Data Source=|DataDirectory|\VerisEdiDB.accdb;Persist Security Info=True" ProviderName="System.Data.OleDb" SelectCommand="SELECT * FROM [HardwareQuery1] WHERE ([HardwareName] = ?)">
            <SelectParameters>
                <asp:QueryStringParameter Name="HardwareName" QueryStringField="name" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>

    </div>
</asp:Content>
